#ifndef BATCHMODIFY_H
#define BATCHMODIFY_H

#include "sql.h"
#include "readonlydelegate.h"
#include <QWidget>
#include <QToolTip>
#include <QModelIndex>
#include <QStyleOptionViewItem>

namespace Ui {
class BatchModify;
}

class BatchModify : public QWidget
{
    Q_OBJECT

public:
    explicit BatchModify(QWidget *parent = nullptr);
    ~BatchModify();

    void tableDataShow(QList<EbookInfo> bookInfoList);

private slots:
    void tabelTooltip(QModelIndex index);

    void on_ptnConfirmModify_clicked();

    void on_ptnCancelModify_clicked();

signals:
    void sendModifyTableData(QList<EbookInfo> resBookInfoList, int rowNum);

private:
    Ui::BatchModify *ui;

    QStringList tablewidgetTitle;
    int tablewidgetColumnCount;
};

#endif // BATCHMODIFY_H
